/**
 * 
 */
package com.xpalive.web.common;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

import com.xpalive.finals.Finals;

/**
 * @author xiongping
 * @IDE eclipse 4.3
 * @time 2015年5月21日 上午11:32:30
 */
public class BaseDomain {
	
	public static final SimpleDateFormat TIMESTAMPT = new SimpleDateFormat(
			Finals.TIMESTAMPT);
	public static final SimpleDateFormat TIMESTAMP = new SimpleDateFormat(
	  Finals.TIMESTAMP);
	public static final SimpleDateFormat DATETIME = new SimpleDateFormat(
			Finals.DATETIME);
	public Calendar calendar = Calendar.getInstance();
	
	protected Long createTime;

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}
	
	public String getCreateTimeT(){
		calendar.setTimeInMillis(createTime);
		return TIMESTAMPT.format(calendar.getTime());
	}
}
